package Demo1;

public class Person {
	
	public String name;  //字段或成员变量
	private int age=88;
	public final String password = "123";  //字段或成员变量
	
		
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	public Person() {
		System.out.println("Person构造函数");
	}
	private Person(int i) {
		System.out.println("Person构造函数"+i);
	}
	public Person(String value) {
		System.out.println("Person构造函数   "+value);
	}

	public void eat() {
		System.out.println("吃");
	}
	public void run(String road) {
		System.out.println("在"+road);
	}
	public void run(String road,String port) {
		System.out.println("在"+road+port);
	}
	
	public String test(String str){
		return str+"name";
	}
	private  String test2(String str){
		return str+"33号";
	}
	
	public static String  live(){
		System.out.println("i am alive");
		return "你妹";
	}
	
	public static void main(String[] args) {
		System.out.println("main方法"+args[0]);
	}
}
